package cn.zjweu.dao;

import cn.zjweu.domain.User;

import java.util.List;

public interface UserDao {

    User findUserByNameAndPWD(String username, String password);

    User findUsername(String username);

    boolean saveUser(String username, String password, String trueName, String telephone, String city, String address);

    boolean editUser(User user);

    User findUserById(int userId);

    List<User> findAllUser();

    void resetPWD(int userId);

    void delUserById(int userId);
}
